// 该文件专门用于创建整个应用的路由器
import VueRouter from 'vue-router'


//引入自己需要跳转的组件
import index from '../pages/index.vue'
import page2 from '../pages/page2.vue'
import page3 from '../pages/page3.vue'
import page4 from '../pages/page4.vue'
//商品详情页面

import goodinfo from '../pages/gooder.vue'
import goodinfomation from '../pages/goodinfomation.vue'
import shopcar from '../pages/ShopCar.vue'

import FaleRouter from '../pages/CenterUse.vue'
//创建并暴露一个路由器
export default new VueRouter({
    routes:[
		//首页重定向
        {
            path:'/',
            redirect:'/index'
        },
		//首页
		{
			path:'/index',
			component:index
		},
		//店铺路由
		{
			path:'/FaleRouter/:shop',
			component:FaleRouter,
			props:true
		},
		//购物车结算路由
		{
			path:'/car',
			component:shopcar
		},
		
		{
			path:'/goodinformation',
			component:goodinfomation,
			props:true
		},
		//三折疯抢
		{
		    path:'/page2',
		    component:page2
		},
		//唯品快抢
		{
		    path:'/page3',
		    component:page3
		},
		//国际
		{
		    path:'/page4',
		    component:page4
		}
    ]
})